﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityMode
{
  public  class Interview
    {
        /// <summary>
        /// 数据唯一标识符
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        [Required]
        public Guid Id { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        public string? Name { get; set; }
        /// <summary>
        /// 性别
        /// </summary>
        [Required]
        public bool Gender { get; set; }
        /// <summary>
        /// 年龄
        /// </summary>
        [Required]
        public int Age { get; set; }
        /// <summary>
        /// 居住地址
        /// </summary>
        [StringLength(150)]
        [Required]
        public string? Address { get; set; }
        /// <summary>
        ///出生日期 
        /// </summary>
        public DateTime BirthDate { get; set; }
        /// <summary>
        /// 0：辖区人员
        /// 1:职员
        /// </summary>
        public bool Relationship { get; set; }
        /// <summary>
        /// 走访时间
        /// </summary>
        [Required]
        public DateTime Visittime { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        [Required]
        public int PhoneNumber { get; set; }
        [Required]
        [StringLength(50)]
        public string? Financial { get; set; }
    }
}
